import java.util.Scanner;
/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-07-08
 * Time: 10:25
 */
//位运算相关，把一个整数的二进制的32位打印出来
public class BitOperation {
    public static void main (String[] args) {
        Scanner scan=new Scanner( System.in);
        int num=scan.nextInt();
        int i=0;
        for(i=31;i>=0;i--){
            System.out.print((num&(1<<i))==0 ? "0":"1");
        }
        System.out.println();
    }
}
